package com.longxi.tianjintianbao.ui.activity.login;

import android.support.v7.widget.RecyclerView;

import com.longxi.tianjintianbao.R;
import com.longxi.tianjintianbao.ui.base.BaseActivity;
import com.longxi.tianjintianbao.ui.presenter.login.ChangeAccountAtPresenter;
import com.longxi.tianjintianbao.ui.view.login.IChangeAccountAtView;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

public class ChangeAccountActivity extends BaseActivity<IChangeAccountAtView, ChangeAccountAtPresenter> implements IChangeAccountAtView {

    private final String TAG = "ChangeAccountActivity";

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_change_account;
    }

    @Override
    public void initData() {
        super.initData();
        mPresenter.setBar();
        mPresenter.initAdapter();

    }

    @Override
    public void initListener() {
        super.initListener();
        mPresenter.getUserAccount();
    }

    @Override
    protected ChangeAccountAtPresenter createPresenter() {
        return new ChangeAccountAtPresenter(this);
    }

    @Override
    public SmartRefreshLayout getRefreshLayout() {
        return mRefreshLayout;
    }

    @Override
    public RecyclerView getRvContent() {
        return mRvContent;
    }

}
